#include "loadingform.h"
#include "ui_loadingform.h"

LoadingForm::LoadingForm(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LoadingForm)
{
    ui->setupUi(this);
}

LoadingForm::LoadingForm(QString text, QWidget *parent) :
    QWidget(parent),
    ui(new Ui::LoadingForm)
{
    ui->setupUi(this);
    ui->label->setText(text);
}

LoadingForm::~LoadingForm()
{
    delete ui;
}

QString LoadingForm::labelText() const
{
    return ui->label->text();
}

void LoadingForm::setLabelText(QString text)
{
    if (ui->label->text() != text)
    {
        ui->label->setText(text);
        emit labelTextChanged();
    }
}
